/*
 * @Author: your name
 * @Date: 2022-03-21 14:45:03
 * @LastEditTime: 2022-05-18 10:19:12
 * @LastEditors: liuhanlu liuhanlu@163.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \rongeduo-admin\src\api\label.js
 */
import request from '@/utils/request'

//查询全部
export function findAll(params) {
    return request({
        url: '/loan-app-label/findAll',
        method: 'get',
        params: params
    })
}

//添加
export function add(data) {
    return request({
        url: '/loan-app-label/add',
        method: 'post',
        data: data
    })
}

//搜索
export function findByName(data) {
    return request({
        url: '/loan-app-label/findByName',
        method: 'post',
        data: data
    })
}

//编辑
export function ids(data) {
    return request({
        url: '/api/loanApp/ids',
        method: 'post',
        data: data
    })
}
//查看所有产品接口
export function list(data) {
    return request({
        url: '/api/loanApp/list',
        method: 'post',
        data: data
    })
}
// 查询该标签下的产品信息
export function findLoanAppByLabelId(data) {
    return request({
        url: '/loan-app-label/findLoanAppByLabelId',
        method: 'get',
        params: data
    })
}
// 删除标签
export function deleteById(data) {
    return request({
      url: '/loan-app-label/deleteById',
      method: 'get',
      params: data
    })
  }
// 更改排序
export function updateSort(data) {
    return request({
      url: '/loan-app-label/updateSort',
      method: 'post',
      data: data
    })
  }